package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Shoppingtrolley;
import org.hxyjs.entity.Shoppingtrolley;
import org.hxyjs.page.PageInfo;

public interface ShoppingtrolleyService {
    /**
     * 查询全部购物车
     * @return
     */
    public DTO<Shoppingtrolley> getAllShoppingtrolleys() throws Exception;
    /**
     * 删除购物车
     * @return
     */
    public DTO<Shoppingtrolley> deleteShoppingtrolleyByStno(String stno) throws Exception;
    /**
     * 修改购物车
     * @return
     */
    public DTO<Shoppingtrolley> updateShoppingtrolleyByStno(Shoppingtrolley shoppingtrolley) throws Exception;
    /**
     * 增加购物车
     * @return
     */
    public DTO<Shoppingtrolley> addShoppingtrolley(Shoppingtrolley shoppingtrolley) throws Exception;
    /**
     * 分页查询管理员
     * @return
     */
    public DTO<Shoppingtrolley> getShoppingtrolleyByPage(PageInfo pageInfo) throws Exception;
}
